package de.waldemar;

import java.awt.Image;
import java.io.IOException;

import javax.imageio.ImageIO;

public final class ChatIcons {

  public static final Image ICON_DEFAULT = ChatIcons.createImageIcon("/button-blue.png");
  public static final Image ICON_ACTION = ChatIcons.createImageIcon("/button-red.png");
  
  private ChatIcons(){}
  
  /** Returns an ImageIcon, or null if the path was invalid. */
  private static Image createImageIcon(String path) {
    try {
      return ImageIO.read(ChatIcons.class.getResource(path));
    } catch (IOException e) {
      e.printStackTrace();
      return null;
    }

  }
}
